package day4.作业1026.作业02;

public class Teacher {
    private String name;
    private int age;
    private int jiaoling;
    private String sex;

    public Teacher() {
    }

    public Teacher(String name, int age, int jiaoling, String sex) {
        this.name = name;
        this.age = age;
        this.jiaoling = jiaoling;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getJiaoling() {
        return jiaoling;
    }

    public void setJiaoling(int jiaoling) {
        this.jiaoling = jiaoling;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public void selfIntroduce(){
        System.out.println("我的名字叫："+name+"年龄："+age+"岁"+"教龄："+jiaoling+"年"+"性别"+sex);
    }
    public void giveLession(){
        System.out.println("上课");
    }

}
